<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Goods/index')}">商品管理</a></li>
        <li class="active"><a href="#A" data-toggle="tab">商品详情</a></li>
    </ul>
    <php>$goods_statuses=array("1"=>"出售","2"=>"下架");</php>
    <form class="form-horizontal js-ajax-form margin-top-20" action="{:url('goods/editPost')}"
        method="post">
        <fieldset>
            <input type="hidden" name="goods_id" value="{$goods.goods_id}">
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">商品名称</label>
                            <div class="col-md-6 col-sm-10">
                                <p class="help-block" id="input-site-name">{$goods.goods_title}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-admin_url_password" class="col-sm-2 control-label">
                                库存数量
                            </label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" id="input-admin_url_password" name="goods_stock"
                                       value="{$goods.goods_stock}" style="width:100px;float:left;">
                                <p class="help-block" style="float:left;padding-left:10px;">台</p>

                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site_icp" class="col-sm-2 control-label">单价</label>
                            <div class="col-md-6 col-sm-10">
                                <p class="help-block" id="input-site_icp">{$goods.goods_price}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">状态</label>
                            <div class="col-md-6 col-sm-10">
                                <p class="help-block">{$goods_statuses[$goods['goods_status']]}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">
                                    保存
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>
